﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="TecnicosManut.aspx.cs" Inherits="SERIX.TecnicosManut" Title="Técnicos" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="Controles/lovGenerica.ascx" TagName="lovGenerica" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <table width="97%" border="0" cellspacing="0" cellpadding="2" align="center">
            <tr>
                <td width="100%" class="secao_titulo">
                    <span style="color: black">
                        <asp:Label ID="lblTitulo" runat="server" Text="Técnicos" TabIndex="-1"></asp:Label>
                        <hr class="linhahorizontal" style="width: 740px" />
                </td>
            </tr>
            <tr>
                <td align="left" class="erro">
                    <asp:Label ID="lblErro" runat="server" CssClass="erro" Text="*Erro: " Visible="False"
                        Width="740px" TabIndex="-1"></asp:Label>
                </td>
            </tr>
        
            <tr>
                <td align="left" class="erro">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                        Width="677px" ForeColor="Black">
                        <cc1:TabPanel runat="server" HeaderText="Cadastro" ID="TabPanel1">
                            <ContentTemplate><div><table style="width: 100%"><tr><td class="grid_titulo_right" style="color: black;" width="25%">Matrícula&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtMatricula" runat="server" Columns="8" MaxLength="4"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvMatricula" runat="server" 
                                                    ControlToValidate="txtMatricula" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Nome&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtNome" runat="server" Columns="44" MaxLength="50"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvNome" runat="server" 
                                                    ControlToValidate="txtNome" CssClass="erro" ErrorMessage="*Campo obrigatório!" 
                                                    Style="position: static" TabIndex="-1" Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Nº CREA&#160;&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox 
                                        ID="tbcrea" runat="server"></asp:TextBox></td></tr><tr><td 
                                        class="grid_titulo_right" style="color: black;" width="25%">Usuário&#160;&#160;&#160;&#160; </td><td 
                                        class="grid_celula" style="height: 30px"><asp:TextBox ID="txtCodUsuario" 
                                            runat="server" Columns="44" Enabled="False" MaxLength="60"></asp:TextBox><span 
                                            class="grid_celula" style="color: black"><uc1:lovGenerica ID="LovUsuarios1" 
                                            runat="server" />
                                        <asp:RequiredFieldValidator ID="rfvUsername" runat="server" 
                                            ControlToValidate="txtCodUsuario" CssClass="erro" 
                                            ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                            Width="174px"></asp:RequiredFieldValidator>
                                        </span>
                                    </td>
                                </tr>
                                <tr><td class="grid_titulo_right" style="color: black;" width="25%">Escritório&#160;&#160;&#160;&#160;
                                     </td><td class="grid_celula" style="height: 30px"><asp:DropDownList ID="ddlEscritorio" runat="server" 
                                                    onprerender="ddlEscritorio_PreRender" Width="300px"></asp:DropDownList><span 
                                            class="grid_celula" style="color: black"><asp:RequiredFieldValidator 
                                            ID="rfvEsloc" runat="server" ControlToValidate="ddlEscritorio" CssClass="erro" 
                                            ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                            Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Órgão&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><span class="grid_celula" style="color: black"><asp:DropDownList ID="ddlOrgao" runat="server" OnPreRender="ddlOrgao_PreRender" 
                                                    TabIndex="3" Width="300px"></asp:DropDownList><asp:RequiredFieldValidator ID="rfvOrgao" runat="server" 
                                                    ControlToValidate="ddlOrgao" CssClass="erro" ErrorMessage="*Campo obrigatório!" 
                                                    Style="position: static" TabIndex="-1" Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Cargo&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:DropDownList ID="ddlTipoCargo" runat="server" 
                                                    OnPreRender="ddlTipoCargo_PreRender" Width="300px"></asp:DropDownList><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvCargo" runat="server" 
                                                    ControlToValidate="ddlTipoCargo" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Função&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:DropDownList ID="ddlFuncao" runat="server" 
                                                    onprerender="ddlFuncao_PreRender" Width="300px"></asp:DropDownList><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvFuncao" runat="server" 
                                                    ControlToValidate="ddlFuncao" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Endereço&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtEndereco" runat="server" Columns="44" MaxLength="50"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvEndereco" runat="server" 
                                                    ControlToValidate="txtEndereco" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Complemento&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtComplemento" runat="server" Columns="34" MaxLength="30"></asp:TextBox></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Bairro&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtBairro" runat="server" Columns="44" MaxLength="40"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvBairro" runat="server" 
                                                    ControlToValidate="txtBairro" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">CEP&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtCep" runat="server" Columns="12" MaxLength="8"></asp:TextBox><cc1:MaskedEditExtender ID="txtCep_MaskedEditExtender1" runat="server" CultureAMPMPlaceholder="" 
                                                    CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                                                    CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                                    Mask="99\.999-999" TargetControlID="txtCep"></cc1:MaskedEditExtender><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvCep" runat="server" 
                                                    ControlToValidate="txtCep" CssClass="erro" ErrorMessage="*Campo obrigatório!" 
                                                    Style="position: static" TabIndex="-1" Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Cidade&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtCidade" runat="server" Columns="44" MaxLength="40"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvCidade" runat="server" 
                                                    ControlToValidate="txtCidade" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Estado&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:DropDownList ID="ddlEstados" runat="server"><asp:ListItem /><asp:ListItem>AC</asp:ListItem><asp:ListItem>AL</asp:ListItem><asp:ListItem>AM</asp:ListItem><asp:ListItem>AP</asp:ListItem><asp:ListItem>BA</asp:ListItem><asp:ListItem>CE</asp:ListItem><asp:ListItem>DF</asp:ListItem><asp:ListItem>ES</asp:ListItem><asp:ListItem>GO</asp:ListItem><asp:ListItem>MA</asp:ListItem><asp:ListItem>MG</asp:ListItem><asp:ListItem>MT</asp:ListItem><asp:ListItem>MS</asp:ListItem><asp:ListItem>PA</asp:ListItem><asp:ListItem>PB</asp:ListItem><asp:ListItem>PE</asp:ListItem><asp:ListItem>PI</asp:ListItem><asp:ListItem>PR</asp:ListItem><asp:ListItem>RJ</asp:ListItem><asp:ListItem>RN</asp:ListItem><asp:ListItem>RO</asp:ListItem><asp:ListItem>RR</asp:ListItem><asp:ListItem>RS</asp:ListItem><asp:ListItem>SC</asp:ListItem><asp:ListItem Selected="True">SE</asp:ListItem><asp:ListItem>SP</asp:ListItem><asp:ListItem>TO</asp:ListItem></asp:DropDownList><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvEstado" runat="server" 
                                                    ControlToValidate="ddlEstados" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Telefone1&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtteleFone1" runat="server" Columns="44" MaxLength="50" 
                                                    Width="130px"></asp:TextBox><cc1:MaskedEditExtender ID="txtteleFone1_MaskedEditExtender" runat="server" 
                                                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                                    Mask="(99)9999-9999" TargetControlID="txtteleFone1"></cc1:MaskedEditExtender><span class="grid_celula" style="color: black"><asp:RequiredFieldValidator ID="rfvTelefone" runat="server" 
                                                    ControlToValidate="txtteleFone1" CssClass="erro" 
                                                    ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1" 
                                                    Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Telefone2&#160;&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtteleFone2" runat="server" Columns="44" MaxLength="50" 
                                                    Width="130px"></asp:TextBox><cc1:MaskedEditExtender ID="txtteleFone2_MaskedEditExtender" runat="server" 
                                                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                                    Mask="(99)9999-9999" TargetControlID="txtteleFone2"></cc1:MaskedEditExtender></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Email&#160;Funcional &#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtEmail" runat="server" Columns="44" MaxLength="35"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                    ControlToValidate="txtEmail" CssClass="erro" Display="Dynamic" 
                                                    ErrorMessage="*Email inválido!" TabIndex="-1" 
                                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                                    Width="100px"></asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
                                                    ControlToValidate="txtEmail" CssClass="erro" ErrorMessage="*Campo obrigatório!" 
                                                    Style="position: static" TabIndex="-1" Width="174px"></asp:RequiredFieldValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">Email Pessoal&#160;&#160;&#160;&#160; </td><td class="grid_celula" style="height: 30px"><asp:TextBox ID="txtEmail0" runat="server" Columns="44" MaxLength="35"></asp:TextBox><span class="grid_celula" style="color: black"><asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                    ControlToValidate="txtEmail0" CssClass="erro" Display="Dynamic" 
                                                    ErrorMessage="*Email inválido!" TabIndex="-1" 
                                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                                    Width="100px"></asp:RegularExpressionValidator></span></td></tr><tr><td class="grid_titulo_right" style="color: black;" width="25%">&#160;</td><td class="grid_celula" style="height: 30px">&#160;</td></tr><tr><td align="left" class="erro">&#160;&nbsp;</td></tr></table></div>
                            </ContentTemplate>
                        </cc1:TabPanel>
                        <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Municipios">
                        <ContentTemplate><table width="97%" border="0" cellspacing="0" cellpadding="2" align="center"><tr><td class="secao_titulo" style="width: 100%">Permissões<hr class="linhaHorizontal" style="width: 667px" /><table style="width: 100%"><tr><td align="center" class="grid_mestre" id="tdMestre" runat="server"><asp:Label 
                                ID="lbMestre" runat="server" Text="Abrangência do Tecnico por Municipio"></asp:Label></td></tr></table><table style="width: 100%"><tr><td class="grid_mestre" style="width: 287px; vertical-align: top">Municipios</td><td class="grid_mestre" style="width: 100px; vertical-align: middle">Opções </td><td class="grid_mestre" style="width: 320px; vertical-align: top">Municipios Alocados </td></tr><tr><td style="width: 287px; vertical-align: top">
                                <asp:ListBox 
                                ID="lbMun" runat="server" Width="99%" Height="308px" 
                                SelectionMode="Multiple" ontextchanged="lbMun_TextChanged"></asp:ListBox></td><td style="width: 100px; vertical-align: middle"><table style="width: 100%; text-align: center"><tr><td><asp:Button ID="BtnIncluir" runat="server" Text="&gt;" Width="30px" 
                                            OnClick="BtnIncluir_Click" ToolTip="Incluir Selecionados" /></td></tr><tr><td><asp:Button ID="BtnIncluirTodos" runat="server" Text="&gt;&gt;" Width="30px" 
                                            OnClick="BtnIncluirTodos_Click" ToolTip="Incluir Todos" /></td></tr><tr><td><asp:Button ID="BtnRemover" runat="server" Text="&lt;" Width="30px" 
                                            OnClick="BtnRemover_Click" ToolTip="Remover Selecionados" /></td></tr><tr><td><asp:Button ID="BtnRemoverTodos" runat="server" Text="&lt;&lt;" Width="30px" 
                                            OnClick="BtnRemoverTodos_Click" ToolTip="Remover Todos" /></td></tr></table></td><td style="width: 320px; vertical-align: top"><asp:ListBox 
                                    ID="lbMunAloc" runat="server" Width="97%" Height="308px" 
                                SelectionMode="Multiple"></asp:ListBox></td></tr></table></td></tr></table>
                        </ContentTemplate>
                        </cc1:TabPanel>
                    </cc1:TabContainer>
                        <tr __designer:mapid="56">
                            <td colspan="2" style="height: 30px; color: black;" width="25%" __designer:mapid="57"
                                align="center">
                                <asp:Button ID="Ok_Button" runat="server" Font-Bold="True" Text="Ok" Width="80px"
                                    OnClick="Ok_Button_Click" />
                                &nbsp;<asp:Button ID="Cancelar_Button" runat="server" Font-Bold="True" OnClick="Cancelar_Button_Click"
                                    Text="Cancelar" Width="80px" CausesValidation="False" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
